import React from 'react';
import { render } from 'react-dom';
import { renderToString } from 'react-dom/server';
import injectTapEventPlugin from 'react-tap-event-plugin'
import { Provider } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import configureStore from './stores';
import Striking from './containers/Striking';
import './styles/font-awesome.css'
import './styles/base.scss'
import './styles/page.scss'

// 
injectTapEventPlugin();

const store = configureStore();

const App = () => (
  <MuiThemeProvider>
    <Striking />
  </MuiThemeProvider>
);

// const html=renderToString(<Provider store={store}>
//     <App />
//   </Provider>);
// console.log(html);

render(
  <Provider store={store}>
    <App />
  </Provider>, 
  document.getElementById('app')
);
